

<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>所属网点销量明细查询</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body class="white-bg animated slideIn x_sorll" style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade clearfix">
      <h2 class="title_color text-center">
        <a class="col-md-6 title_color H_right" style="font-size: 16px;color:#333;" href="{:url('Other/allnetordergathercl')}">未处理的网点订单</a>
        <a class="col-md-6 title_color H_right H_active" style="font-size: 16px;" href="{:url('Other/allnetordergathercl1')}">已处理的网点订单</a>

      </h2>
    </div>
    <!-- 标题 -->
    <div>
 <form action="" class="form-inline" id="form1">
      <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td class="text-right">下单日期：</td>
            <td>
                   <div class="form-group">
                     <input type="text" id="start" class="form-control layer-date " style="min-width:140px;width:140px;display: inline-block;" name="">
                   </div>
                   <div class="form-group">
                    至
                   </div>
                 <div class="form-group">
                   <input type="text" class="form-control layer-date" style="min-width:140px;width:140px;display: inline-block;" id="end" name="">
                 </div> 
            </td>
            <td class="text-right">网点编号：</td>
            <td><input type="text" class="form-control" name=""></td>
            <td class="text-right">网点名称：</td>
            <td><input type="text" class="form-control" name=""></td>
          </tr>
            <tr>
               <td class="text-right">产品编号：</td>
               <td><input type="text" class="form-control" name=""></td>
               <td class="text-right">产品名称：</td>
               <td><input type="text" class="form-control" name=""></td>
               <td class="text-right">促销编号：</td>
               <td><input type="text" class="form-control" name=""></td>
            </tr>
              <tr>
                  <td class="text-right">促销主题：</td>
                  <td><input type="text" class="form-control" name=""></td>
                  <td class="text-right">经销商名称：</td>
                  <td><input type="text" class="form-control" name=""></td>
                  <td class="text-right">配送类型：</td>
                  <td>
                    <select name="" id="" class="form-control select">
                          <option value="0">请选择</option>
                          <option value="1">经销商</option>
                          <option value="2">配送商</option>
                    </select>
                  </td>
            </tr>
         <tr>
           <td class="text-center" colspan="6">
                       <button class="btn-sm btn-info btn">查询</button><span class="lr_5"></span><button class="btn-sm btn-info btn" type="reset" id="reset">清空查询条件</button><span class="lr_5"></span><a class="btn-sm btn-info btn" href="javascript:;">导出Excel</a>
                   </td>
         </tr>
      </table>
    </form>
       <table class="table table-striped table-bordered table-hover text-center">
          <tr class="info">
            <td>序号</td>
            <td>网点编号</td>
            <td>网点名称</td>
            <td>网点联系人</td>
            <td>联系电话</td>
            <td>手机</td>
            <td>网点地址</td>
            <td>经销商名称</td>
            <td>配送类型</td>
            <td>订单备注</td>
            <td>产品编号</td>
            <td>产品名称</td>
            <td>订单数量</td>
            <td>供货价(元)</td>
            <td>订单总额(元)</td>
            <td>促销编号</td>
            <td>促销主题</td>
            <td>录入人员</td>
            <td>下单日期</td>
            <td>产品备注</td>
            <td>处理状态</td>
            <td>处理人员</td>
            <td>操作</td>
          </tr>
          <tr>
            <td>1</td>
            <td>S0000000001</td>
            <td class="text-left">百佳金田店</td>
            <td></td>
            <td></td>
            <td></td>
            <td>广东省广州市番禺区南村镇满记甜品(海印又一城奥特莱斯广场)海印星月</td>
            <td></td>
            <td></td>
            <td></td>
            <td>103010018</td>
            <td class="text-left">01豆沙粽</td>
            <td>5箱0袋</td>
            <td class="text-right">384.0000</td>
            <td class="text-right">1920.0000</td>
            <td></td>
            <td></td>
            <td>楊洋</td>
            <td>2018-01-04 21:36</td>
            <td></td>
            <td>未处理</td>
            <td></td>
            <td><a href="javascript:;" class="chuli">处理</a>&nbsp;<a href="javascript:;">查看处理意见</a></td>
          </tr>
      </table>

        
    </div>
        <!--   <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5> -->
    <div id="orderchuli" class="ibox-content" style="display: none;">
        <form action="" class="form-inline">
            <table class="table-bordered table text-center">
              <tr class="info">
                <td>序号</td>
                <td>网点编号</td>
                <td>网点名称</td>
                <td>条码编号</td>
                <td>条码名称</td>
                <td>订单数量</td>
                <td>录入人员</td>
              </tr>
              <tr>
                <td>1</td>
                <td>S00000001</td>
                <td class="text-left">百佳金田店</td>
                <td>103010018</td>
                <td class="text-left">01豆沙粽</td>
                <td>5箱0袋</td>
                <td>杨洋</td>
              </tr>
                <tfoot>
                  <tr>
                    <td>处理意见</td>
                    <td colspan="6" class="text-left">
                        <textarea name="" id="" cols="60" rows="5" class="form-control" style="resize: none;"></textarea>
                    </td>
                  </tr>
                </tfoot>
            </table>
            <div class="padding-10 text-center">
                <button class="btn btn-sm btn-primary">部分处理</button><span class="lr_5"></span> <button class="btn btn-sm btn-success">处理完毕</button><span class="lr_5"></span><button class="btn btn-sm btn-warning" type="button" id="fanhui">返回</button>
            </div>
        </form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
  <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script>

     
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
  $(document).ready(function () {
        $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })   

//日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);

        $("#plchuli").click(function(){
          swal("请选择要处理的订单！")
        })


               /*table表格操作*/
      $("#checkAll").click(function() {

            $("[name=items]:checkbox").prop("checked", $(this).prop("checked"));
            if ($("[name=items]:checkbox").prop("checked") != true) {
                // console.log($(this))
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#fff")
            } else {
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#f8f800")

            }
        })
        $("[name=items]:checkbox").click(function() {
            //定义一个临时变量，避免重复使用同一个选择器选择页面中的元素，提高程序效率
            // console.log(1)
            var $tmp = $("[name=items]:checkbox");
            if ($(this).prop("checked") != true) {
                // console.log($(this))
                $(this).parent().parent().css("backgroundColor", "#fff")
            } else {
                $(this).parent().parent().css("backgroundColor", "#f8f800")

            }
            //用filter()方法筛选出选中的复选框，并直接给CheckedAll赋值
            $("#checkAll").prop('checked', $tmp.length == $tmp.filter(':checked').length);

          })

    </script>


</body>

</html>
